import http from "../../http/http";

interface loginResType {
  code: number;
  data: any;
}
interface loginType {
  phone: number;
  password: string;
  code: string;
}
enum URL {
  loginUrl = "",
}

export const login = (data: loginType) => {
  http.post<loginResType>(URL.loginUrl, data);
};
